﻿<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:template match="/dmodule">
		<html>
			<head>
				<meta charset="utf-8"/>
				<meta name="viewport" content="width=device-width, initial-scale=1"/>
				<title>IETM浏览器</title>
				<link rel="stylesheet" href="/css/important_css.css" type="text/css"/>
				<link type="text/css" href="/css/dm/s1000D.css" rel="stylesheet"/>
				<script type="text/javascript" src="/js/jquery.js"/>
				<script type="text/javascript" src="/js/jquery-ui.js"/>
				<script type="text/javascript" src="/js/UnityObject2.js"/>
				<script type="text/javascript" src="/js/procedure_api.js"/>
				<script type="text/javascript" src="/js/media.js"/>
				<script type="text/javascript" src="/js/dialog-help.js"/>
				<script type="text/javascript" src="/js/public.js"/>
				<script type="text/javascript" src="/js/pprompt.js"/>
				<script type="text/javascript" src="/js/jquery.form.js"/>
				<script type="text/javascript" src="/js/zebra_dialog.src.js"/>
				<script type="text/javascript" src="/js/Tdrag.js"/>
				<script type="text/javascript" src="/js/menu.js" charset="UTF-8"/>
				<script type="text/javascript" src="/js/note.js"/>
				<script type="text/javascript" src="/ietm/js/dm-plugin.js"/>
				<style type="text/css">
	    	body,html{background:#fff;width:100%;height:100%;overflow:auto}
			</style>
			</head>
			<body>
				<div class="home-d">
					<div class="home-d-t active">
						<div class="home-d-t-pub">
							<div class="home-d-t-title">
								<span>数据模块信息</span>
							</div>
						</div>
						<div class="home-d-t-content">
							<table width="50%" align="left" cellpadding="4" cellspacing="0">
								<tr>
									<td width="100%" colspan="2" style="font-weight:bold;">标识信息</td>
								</tr>
								<!--xml解析内容-->
								<tr>
									<td>数据模块编码:</td>
									<td>
										<xsl:for-each select="identAndStatusSection/dmAddress/dmIdent">
											<xsl:apply-templates select="dmCode" mode="dmCode"/>
										</xsl:for-each>
									</td>
								</tr>
								<tr>
									<td>版本信息:</td>
									<xsl:for-each select="identAndStatusSection/dmAddress/dmIdent">
										<xsl:apply-templates select="issueInfo" mode="issueInfo"/>
									</xsl:for-each>
								</tr>
								<tr>
									<td>发布日期:[yyyy-mm-dd]</td>
									<xsl:for-each select="identAndStatusSection/dmAddress/dmAddressItems">
										<xsl:apply-templates select="issueDate" mode="issueDate"/>
									</xsl:for-each>
								</tr>
								<tr>
									<td>语言:[国家/语言]</td>
									<xsl:for-each select="identAndStatusSection/dmAddress/dmIdent">
										<xsl:apply-templates select="language" mode="language"/>
									</xsl:for-each>
								</tr>
							</table>
							<table width="50%" align="right" cellpadding="0" cellspacing="0">
								<tr>
									<td width="100%" colspan="2" style="font-weight:bold;">状态信息</td>
								</tr>
								<!--xml解析内容-->
								<tr>
									<td>密级:</td>
									<xsl:for-each select="identAndStatusSection/dmStatus">
										<xsl:apply-templates select="security" mode="security"/>
									</xsl:for-each>
								</tr>
								<tr>
									<td>责任合作单位:</td>
									<xsl:for-each select="identAndStatusSection/dmStatus">
										<xsl:apply-templates select="responsiblePartnerCompany" mode="responsiblePartnerCompany"/>
									</xsl:for-each>
								</tr>
								<tr>
									<td>创作单位:</td>
									<xsl:for-each select="identAndStatusSection/dmStatus">
										<xsl:apply-templates select="originator" mode="originator"/>
									</xsl:for-each>
								</tr>
								<tr>
									<td>适用性信息:</td>
									<td>
										<xsl:value-of select="identAndStatusSection/dmStatus/applic/displayText/simplePara"/>
									</td>
								</tr>
								<tr>
									<td>质量验证:</td>
									<td>理论验证(TT)</td>
								</tr>
							</table>
						</div>
					</div>
					<div class="home-d-b">
						<!--左右的样式-->
						<div class="home-d-b-tow">
							<div>
								<div class="home-d-t-pub">
									<div class="home-d-t-title">
										<!--解析内容标题-->
										<span class="dmtitle">
											<xsl:for-each select="identAndStatusSection/dmAddress/dmAddressItems">
												<xsl:apply-templates select="dmTitle" mode="dmTitle"/>
											</xsl:for-each>
										</span>
									</div>
									<div class="home-d-t-syx">
										<span>适用性：
								<xsl:value-of select="identAndStatusSection/dmStatus/applic/displayText/simplePara"/>
										</span>
										<span>密级：
							<xsl:for-each select="identAndStatusSection/dmStatus">
												<xsl:apply-templates select="security" mode="security1"/>
											</xsl:for-each>
										</span>
										<span class="home-d-m-show">更多>></span>
										<span class="home-d-m-hide">隐藏>></span>
									</div>
								</div>
								<div class="home-d-b-content">
									<!--解析主题内容-->
									<xsl:apply-templates select="content"/>
								</div>
							</div>
							<div class="home-d-b-towr" style="display:none">
								<div class="home-d-t-pub">
									<div class="home-d-t-title">
										<span>多媒体显示区</span>
									</div>
									<div class="home-d-t-syx">
									<div class="cgmu3dclose"></div>
									</div>
									<div class="home-d-t-syx" style="margin-right:30px;">
									<div class="fullscreen"></div>
									</div>
								</div>
								<div class="home-d-b-content" id="ietm-media">
						
						</div>
							</div>
						</div>
					</div>
				</div>
			</body>
		</html>
	</xsl:template>
	<!--上部信息解析-->
	<!--解析标题-->
	<xsl:template match="*" mode="dmTitle">
		<xsl:value-of select="techName"/> - <xsl:value-of select="infoName"/>
	</xsl:template>
	<!--解析资料编号-->
	<xsl:template match="*" mode="dmCode">
		<xsl:value-of select="@modelIdentCode"/>-<xsl:value-of select="@systemDiffCode"/>-<xsl:value-of select="@systemCode"/>-<xsl:value-of select="@subSystemCode"/>
		<xsl:value-of select="@subSubSystemCode"/>-<xsl:value-of select="@assyCode"/>-<xsl:value-of select="@disassyCode"/>
		<xsl:value-of select="@disassyCodeVariant"/>-<xsl:value-of select="@infoCode"/>
		<xsl:value-of select="@infoCodeVariant"/>-<xsl:value-of select="@itemLocationCode"/>
	</xsl:template>
	<!--版本信息-->
	<xsl:template match="*" mode="issueInfo">
		<td>
	[版本号:<xsl:value-of select="@issueNumber"/>]
	<span style="display:none">
				<xsl:value-of select="@inWork"/>
			</span>
		</td>
	</xsl:template>
	<!--发布日期-->
	<xsl:template match="*" mode="issueDate">
		<td>
			<xsl:value-of select="@year"/>-<xsl:value-of select="@month"/>-<xsl:value-of select="@day"/>
		</td>
	</xsl:template>
	<!--语言-->
	<xsl:template match="*" mode="language">
		<td>
			<xsl:value-of select="@countryIsoCode"/>/<xsl:value-of select="@languageIsoCode"/>
		</td>
	</xsl:template>
	<!--秘级-->
	<xsl:template match="*" mode="security">
		<td>
			<xsl:choose>
				<xsl:when test="./@securityClassification='01'">
			[级别:01 公开]
		</xsl:when>
				<xsl:when test="./@securityClassification='02'">
			[级别:02 内部]
		</xsl:when>
				<xsl:when test="./@securityClassification='03'">
			[级别:03 秘密]
		</xsl:when>
				<xsl:when test="./@securityClassification='04'">
			[级别:04 机密]
		</xsl:when>
				<xsl:when test="./@securityClassification='05'">
			[级别:05 绝密]
		</xsl:when>
				<xsl:otherwise>
        </xsl:otherwise>
			</xsl:choose>
		</td>
	</xsl:template>
	<!--密级划分-->
	<!--秘级-->
	<xsl:template match="*" mode="security1">
		<xsl:choose>
			<xsl:when test="./@securityClassification='01'">
			公开
		</xsl:when>
			<xsl:when test="./@securityClassification='02'">
			内部
		</xsl:when>
			<xsl:when test="./@securityClassification='03'">
			秘密
		</xsl:when>
			<xsl:when test="./@securityClassification='04'">
			机密
		</xsl:when>
			<xsl:when test="./@securityClassification='05'">
			绝密
		</xsl:when>
			<xsl:otherwise>
        </xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	<!--责任合作单位-->
	<xsl:template match="*" mode="responsiblePartnerCompany">
		<td>
	[<xsl:value-of select="@enterpriseCode"/>]
</td>
	</xsl:template>
	<!--创作单位-->
	<xsl:template match="*" mode="originator">
		<td>
	[<xsl:value-of select="@enterpriseCode"/>]
</td>
	</xsl:template>
	<!--图表解析-->
	<xsl:template match="*" mode="figure">
		<div class="figIndent">
		<a><xsl:if test="@id">
					<xsl:attribute name="name"><xsl:value-of select="@id"/></xsl:attribute>
				</xsl:if></a>
			<xsl:for-each select="graphic/hotspot">
				<a>
					<xsl:attribute name="name"><xsl:value-of select="@id"/></xsl:attribute>
				</a>
				<xsl:text>
			</xsl:text>
				<!--提取元素时要求换行-->
			</xsl:for-each>
			<a>
				<xsl:if test="graphic/hotspot/@id">
					<xsl:attribute name="name"><xsl:value-of select="substring(graphic/hotspot/@applicationStructureIdent,4,3)"/></xsl:attribute>
				</xsl:if>
				<!-- <xsl:value-of select="graphic/@infoEntityIdent"/> -->
			</a>
		</div>
		<div class="thumbnail">
			<a>
				<xsl:element name="image">
					<xsl:attribute name="alt">Thumbnail</xsl:attribute>
					<xsl:attribute name="id">%PICID%</xsl:attribute>
					<xsl:attribute name="class">thumbnail</xsl:attribute>
					<xsl:attribute name="height">100</xsl:attribute>
					<xsl:attribute name="src">%PATH%/<xsl:value-of select="graphic/@infoEntityIdent"/>.%ext%</xsl:attribute>
				</xsl:element>
			</a>
<!--				<xsl:if test="graphic/hotspot">
					<div style="display:none;">
						<table cellspacing="0" class="bordered cgm_hotspot_list">
							<thead>
								<tr>
									<th class="bordered">
										<p class="legend">部件号</p>
									</th>
									<th class="bordered">
										<p class="legend">描述</p>
									</th>
								</tr>
							</thead>
							<tbody>
								<xsl:for-each select="graphic/hotspot">
									<tr>
										<td class="bordered">
											<p class="legend cgm_hotspot_element">
												<xsl:value-of select="./@applicationStructureName"/>
											</p>
										</td>
										<td class="bordered">
											<p class="legend">
												<xsl:value-of select="./@objectDescr"/>
											</p>
										</td>
									</tr>
								</xsl:for-each>
							</tbody>
						</table>
					</div>
				</xsl:if>

-->			<div class="textcenter"><xsl:if test="@id"><xsl:attribute name="idno"><xsl:value-of select="@id"/></xsl:attribute></xsl:if>多媒体%PICNO%<xsl:text>  </xsl:text><xsl:value-of select="title"/>
			</div>
		</div>
		<div style="clear:both"/>
		<xsl:for-each select="legend/definitionList">
			<p class="indent">
				<xsl:apply-templates select="." mode="list"/>
			</p>
		</xsl:for-each>
	</xsl:template>
	<!--multimedia解析-->
	<xsl:template match="*" mode="multimedia">
		<div class="figIndent">
			<a>
				<xsl:attribute name="href">%PATH%/<xsl:value-of select="multimediaObject/@id"/>.html?type=res</xsl:attribute>
				<xsl:if test="@id">
					<xsl:attribute name="name"><xsl:value-of select="@id"/></xsl:attribute>
				</xsl:if>
				<xsl:value-of select="multimediaObject/@id"/>
			</a>
		</div>
		<div class="thumbnail">
			<a>
				<xsl:element name="image">
					<xsl:attribute name="alt">Thumbnail</xsl:attribute>
					<xsl:attribute name="id">%PICID%</xsl:attribute>
					<xsl:attribute name="class">thumbnail</xsl:attribute>
					<xsl:attribute name="height">100</xsl:attribute>
					<xsl:attribute name="src">%PATH%/<xsl:value-of select="multimediaObject/@id"/>.%ext%</xsl:attribute>
				</xsl:element>
				<xsl:if test="//multimedia">
					<div style="display:none;">
						<table cellspacing="0" class="bordered cgm_hotspot_list">
							<thead>
								<tr>
									<th class="bordered">
										<p class="legend">序号</p>
									</th>
									<th class="bordered">
										<p class="legend">步骤</p>
									</th>
								</tr>
							</thead>
							<tbody>
								<xsl:for-each select="//mainProcedure/proceduralStep">
									<xsl:if test="@id">
										<tr>
											<td class="bordered">
												<p class="legend">
													<xsl:value-of select="position()"/>
												</p>
											</td>
											<td class="bordered">
												<p class="legend">
													<a>
														<xsl:attribute name="href">#<xsl:value-of select="@id"/></xsl:attribute>
														<xsl:apply-templates select="." mode="para"/>
													</a>
												</p>
											</td>
										</tr>
									</xsl:if>
								</xsl:for-each>
							</tbody>
						</table>
					</div>
				</xsl:if>
			</a>
			<div class="textcenter"><xsl:if test="@id"><xsl:attribute name="idno"><xsl:value-of select="@id"/></xsl:attribute></xsl:if>多媒体 %PICNO% <xsl:value-of select="title"/>
			</div>
		</div>
		<div style="clear:both"/>
		<xsl:for-each select="legend/definitionList">
			<p class="indent">
				<xsl:apply-templates select="." mode="list"/>
			</p>
		</xsl:for-each>
	</xsl:template>
	<!--解析主体内容-->
	<xsl:template match="content">
		<div id="content">
			<xsl:if test="refs">
				<xsl:for-each select="refs">
					<xsl:apply-templates select="." mode="refs"/>
				</xsl:for-each>
			</xsl:if>
			<!--description循环节点-->
			<xsl:for-each select="description">
				<xsl:for-each select="commonInfo">
					<xsl:for-each select="commonInfoDescrPara/title">
						<p class="titleItalic">{{<xsl:value-of select="."/>}}</p>
					</xsl:for-each>
					<xsl:for-each select="commonInfoDescrPara/para">
						<p class="indent">
							<xsl:value-of select="."/>
						</p>
					</xsl:for-each>
					<xsl:for-each select="title">
						<p class="titleItalic">{{<xsl:value-of select="."/>}}</p>
					</xsl:for-each>
					<xsl:for-each select="para">
						<p class="indent">
							<xsl:value-of select="."/>
						</p>
					</xsl:for-each>
				</xsl:for-each>
				<p class="titleItalic">{{描述}}</p>
				<a name="descript"/>
				<xsl:for-each select="*">
					<xsl:if test="name(.) = 'para' or name(.) = 'warning' or name(.) = 'caution' or name(.) = 'note'">
						<xsl:apply-templates select="." mode="para_warning_caution_note"/>
					</xsl:if>
					<xsl:if test="name(.) = 'levelledPara'">
						<div>
							<xsl:apply-templates select="." mode="levelledPara">
								<xsl:with-param name="num">
									<xsl:number level="multiple" count="levelledPara"/>
								</xsl:with-param>
							</xsl:apply-templates>
						</div>
					</xsl:if>
					<xsl:if test="name(.) = 'figure'">
						<xsl:apply-templates select="." mode="figure"/>
					</xsl:if>
					<xsl:if test="name(.) = 'table'">
						<xsl:apply-templates select="." mode="table"/>
					</xsl:if>
				</xsl:for-each>
			</xsl:for-each>
		</div>
	</xsl:template>
	
	
	<xsl:template name="handlepagefragment3" >
       <xsl:param name="appId3"/>
                   <!--  <xsl:for-each select="//dmodule//identAndStatusSection//dmStatus//referencedApplicGroup//applic"> -->
					 <xsl:for-each select="//table//tgroup//colspec">
                      <xsl:if test="@colname=$appId3">
					<!--	<xsl:value-of select="number(@colnum)"/> -->
						<xsl:number value="@colnum"></xsl:number>
					  </xsl:if>
					 
                    </xsl:for-each>
       </xsl:template>

	<xsl:template name="handlepagefragment4" >
       <xsl:param name="appId4"/>
                   <!--  <xsl:for-each select="//dmodule//identAndStatusSection//dmStatus//referencedApplicGroup//applic"> -->
					 <xsl:for-each select="//table//tgroup//colspec">
                      <xsl:if test="@colname=$appId4">
						<xsl:value-of select="number(@colnum)"/> 
					  </xsl:if>
                    </xsl:for-each>
       </xsl:template>

	
	
	<xsl:template match="*" mode="table">
		<table class="bordered" cellspacing="0">
			<caption class="tableTitle">表 %TABLENO% <xsl:value-of select="title"/>
				<xsl:if test="@id">
					<a>
						<xsl:attribute name="name"><xsl:value-of select="@id"/></xsl:attribute>
					</a>
				</xsl:if>
			</caption>
			<xsl:if test="tgroup/thead/row">
				<thead>
			    <xsl:for-each select="tgroup/thead/row">
					     <tr>
							<xsl:for-each select="entry">
							    <xsl:if test="emphasis">
							       <th class="bordered">
							           <p class="table">
											<xsl:apply-templates select="." mode="emphasis"/>
									   </p>
							       </th>
									
							    </xsl:if>
								<xsl:choose>
									<xsl:when test="./@morerows">
										<xsl:element name="th">
											<xsl:attribute name="class">bordered</xsl:attribute>
											<xsl:attribute name="rowspan"><xsl:value-of select="./@morerows + 1"/></xsl:attribute>
											<xsl:attribute name="colspan">
												<xsl:value-of select="./@nameend - ./@namest + 1"/>
											</xsl:attribute>
											<!--<xsl:for-each select="para">-->
											<p class="table">
											   <b>
											       <xsl:apply-templates select="." mode="para"/>
											   </b>
												
											</p>
											<!--</xsl:for-each>-->
										</xsl:element>
									</xsl:when>
									
									<xsl:when test="./@namest">
																						
												<xsl:element name="th">
													<xsl:attribute name="class">bordered</xsl:attribute>
													<xsl:attribute name="colspan">
													   	<xsl:value-of select="./@nameend - ./@namest + 1"/>
													 </xsl:attribute>
													
													<p class="table">
													    <b>
															   <xsl:apply-templates select="." mode="para"/>
														</b>
												
													</p>
												</xsl:element>
									</xsl:when>
									<xsl:otherwise>
										<!--<xsl:choose>
												<xsl:when test="para!=''">
												    <td class="bordered">
														<p class="table">
															<xsl:apply-templates select="." mode="para"/>
														</p>
													</td>
												</xsl:when>
												<xsl:when test="internalRef">
												    <td class="bordered">
														<p class="table">
															<xsl:apply-templates select="." mode="internalRef"/>
														</p>
													</td>
												</xsl:when>
											</xsl:choose>-->
												<xsl:if test="para!=''">
													<td class="bordered">
														<p class="table">
															<xsl:apply-templates select="." mode="para"/>
														</p>
													</td>
												</xsl:if>
												<xsl:for-each select="internalRef">
													<td class="bordered">
														<p class="table">
															<xsl:apply-templates select="." mode="internalRef11"/>
														</p>
													</td>
												</xsl:for-each>
												<xsl:if test="count(child::*)=0">
													<td class="bordered">
														<p class="table">
															<xsl:text> </xsl:text>
														</p>
													</td>
												</xsl:if>
												<xsl:if test="randomList">
													<td class="bordered">
														<p class="table">
														  <xsl:for-each select="randomList">
															<xsl:for-each select="listItem">
																<xsl:if test="../@listItemPrefix = 'pf02'">
																	<xsl:text>- </xsl:text>
																</xsl:if>
																<xsl:if test="../@listItemPrefix = 'pf01'">
																	<xsl:text> </xsl:text>
																</xsl:if>
																<xsl:if test="../@listItemPrefix = 'pf03'">
																	<xsl:text>- </xsl:text>
																</xsl:if>
																<xsl:if test="../@listItemPrefix = 'pf04'">
																	<xsl:text>⊙ </xsl:text>
																</xsl:if>
																<xsl:if test="../@listItemPrefix = 'pf05'">
																	<xsl:text>○ </xsl:text>
																</xsl:if>
																<xsl:if test="../@listItemPrefix = 'pf06'">
																	<xsl:text>□ </xsl:text>
																</xsl:if>
																<xsl:if test="../@listItemPrefix = 'pf07'">
																	<xsl:text>• </xsl:text>
																</xsl:if>
																<xsl:for-each select="para">
																	<xsl:apply-templates select="." mode="para"/>
																</xsl:for-each>
															</xsl:for-each>
													      </xsl:for-each>
														</p>
													</td>
												</xsl:if>
												
												
									</xsl:otherwise>
								</xsl:choose>
							</xsl:for-each>
					     </tr>
				</xsl:for-each>
				</thead>
				</xsl:if>
			<tbody>
				<xsl:if test="tgroup/tbody/row">
					<xsl:for-each select="tgroup/tbody/row">
						<tr > 
							<xsl:for-each select="entry">
								<xsl:choose>
									<xsl:when test="./@morerows">
										<xsl:element name="td">
											<xsl:attribute name="class">bordered</xsl:attribute>
											<xsl:attribute name="rowspan"><xsl:value-of select="./@morerows + 1"/></xsl:attribute>
											<!--<xsl:for-each select="para">-->
											<p class="table">
												<xsl:apply-templates select="." mode="para"/>
											</p>
											<!--</xsl:for-each>-->
										</xsl:element>
									</xsl:when>
									<xsl:otherwise>
										<xsl:choose>
											<xsl:when test="./@namest">
																						
												<xsl:element name="td">
													<xsl:attribute name="class">bordered</xsl:attribute>
													<xsl:attribute name="colspan">
													   	<xsl:value-of select="./@nameend - ./@namest + 1"/>
													 </xsl:attribute>
													
													<!-- <p class="table">
														<xsl:apply-templates select="." mode="para"/>
													</p> -->
													<xsl:if test="para!=''">
														<p class="table">
															<xsl:apply-templates select="." mode="para"/>
														</p>
													</xsl:if>
													<xsl:if test="note!=''">
													<xsl:for-each select="*">
													<xsl:if test="name(.) = 'note'">
													<xsl:apply-templates select="." mode="para_warning_caution_note"/>
													</xsl:if>
													</xsl:for-each>
													</xsl:if>
													
												</xsl:element>
											</xsl:when>
											<xsl:otherwise> 
											    
											<!--<xsl:choose>
												<xsl:when test="para!=''">
												    <td class="bordered">
														<p class="table">
															<xsl:apply-templates select="." mode="para"/>
														</p>
													</td>
												</xsl:when>
												<xsl:when test="internalRef">
												    <td class="bordered">
														<p class="table">
															<xsl:apply-templates select="." mode="internalRef"/>
														</p>
													</td>
												</xsl:when>
											</xsl:choose>-->
												<xsl:choose>
												<xsl:when test="para!=''">
													<td class="bordered">
														<p class="table">
															<xsl:apply-templates select="." mode="para"/>
														</p>
													</td>
													</xsl:when>
													<xsl:when test="note!=''">
													<xsl:for-each select="*">
													<xsl:if test="name(.) = 'note'">
													<xsl:apply-templates select="." mode="para_warning_caution_note"/>
													</xsl:if>
													</xsl:for-each>
													</xsl:when>
													<xsl:otherwise>
													<td class="bordered">
													</td>
													</xsl:otherwise>
											</xsl:choose>
												<xsl:for-each select="internalRef">
													<td class="bordered">
														<p class="table">
															<xsl:apply-templates select="." mode="internalRef11"/>
														</p>
													</td>
												</xsl:for-each>
												<xsl:if test="count(child::*)=0">
													<td class="bordered">
														<p class="table">
															<xsl:text> </xsl:text>
														</p>
													</td>
												</xsl:if>
												<xsl:if test="randomList">
													<td class="bordered">
														<p class="table">
														  <xsl:for-each select="randomList">
															<xsl:for-each select="listItem">
																<xsl:if test="../@listItemPrefix = 'pf02'">
																	<xsl:text>- </xsl:text>
																</xsl:if>
																<xsl:if test="../@listItemPrefix = 'pf01'">
																	<xsl:text> </xsl:text>
																</xsl:if>
																<xsl:if test="../@listItemPrefix = 'pf03'">
																	<xsl:text>- </xsl:text>
																</xsl:if>
																<xsl:if test="../@listItemPrefix = 'pf04'">
																	<xsl:text>⊙ </xsl:text>
																</xsl:if>
																<xsl:if test="../@listItemPrefix = 'pf05'">
																	<xsl:text>○ </xsl:text>
																</xsl:if>
																<xsl:if test="../@listItemPrefix = 'pf06'">
																	<xsl:text>□ </xsl:text>
																</xsl:if>
																<xsl:if test="../@listItemPrefix = 'pf07'">
																	<xsl:text>• </xsl:text>
																</xsl:if>
																<xsl:for-each select="para">
																	<xsl:apply-templates select="." mode="para"/>
																</xsl:for-each>
															</xsl:for-each>
													      </xsl:for-each>
														</p>
													</td>
												</xsl:if>
												
												
												
											</xsl:otherwise>
										</xsl:choose>
									</xsl:otherwise>
								</xsl:choose>
							</xsl:for-each>
						</tr>
					</xsl:for-each>
				</xsl:if>
			</tbody>
		</table>
	</xsl:template>
	
	<!--levelledPara节点解析-->
	<xsl:template match="*" mode="levelledPara">
		<xsl:param name="num"/>
		<xsl:if test="@id">
			<a>
				<xsl:attribute name="name"><xsl:value-of select="@id"/></xsl:attribute>
			</a>
		</xsl:if>
		<!--title节点处理-->
		<xsl:choose>
			<xsl:when test="title">
				<p class="subtitle"><xsl:attribute name="parhref"><xsl:value-of select="@id"/></xsl:attribute>{{<xsl:value-of select="$num"/>
					<span class="blank"/>
					<xsl:apply-templates select="title" mode="para"/>}}</p>
			</xsl:when>
			<xsl:otherwise>
				<!--<span class="subtitle"><xsl:value-of select="$num"/><span class="blank"></span></span>-->
			</xsl:otherwise>
		</xsl:choose>
		<xsl:for-each select="*">
			<xsl:if test="name(.) = 'warning' or name(.) = 'caution' or name(.) = 'note'">
				<xsl:apply-templates select="." mode="para_warning_caution_note"/>
			</xsl:if>
			<xsl:if test="name(.) = 'para'">
				<xsl:variable name="para_number">
					<xsl:number level="single" count="para"/>
				</xsl:variable>
				<xsl:choose>
					<xsl:when test="../title">
						<p class="indent">
							<xsl:apply-templates select="." mode="para"/>
						</p>
					</xsl:when>
					<xsl:otherwise>
						<xsl:choose>
							<xsl:when test="$para_number = 1">
								<p class="para">{{<span class="para">
										<xsl:value-of select="$num"/>
										<span class="blank"/>
									</span>
									<xsl:apply-templates select="." mode="para"/>}}
						</p>
							</xsl:when>
							<xsl:otherwise>
								<p class="indent">
									<xsl:apply-templates select="." mode="para"/>
								</p>
							</xsl:otherwise>
						</xsl:choose>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:if>
			<!--table节点-->
			<xsl:if test="name(.) = 'table'">
				<xsl:apply-templates select="." mode="table"/>
			</xsl:if>
			<!--figure节点-->
			<xsl:if test="name(.) = 'figure'">
				<xsl:apply-templates select="." mode="figure"/>
			</xsl:if>
			<!--multimedia节点-->
			<xsl:if test="name(.) = 'multimedia'">
				<xsl:apply-templates select="." mode="multimedia"/>
			</xsl:if>
			<!--levelledPara递归调用-->
			<xsl:if test="name(.) = 'levelledPara'">
				<xsl:apply-templates select="." mode="levelledPara">
					<xsl:with-param name="num">
						<xsl:number level="multiple" count="levelledPara"/>
					</xsl:with-param>
				</xsl:apply-templates>
			</xsl:if>
		</xsl:for-each>
	</xsl:template>
	<!--list节点解析-->
	<xsl:template match="*" mode="list">
		<xsl:param name="a1">
			<xsl:value-of select="position()"/>
		</xsl:param>
		<xsl:if test="name(.) = 'sequentialList'">
			<xsl:if test="title">
				<xsl:apply-templates select="title" mode="para"/>
			</xsl:if>
			<xsl:for-each select="listItem">
				<div class="indent">
					<xsl:value-of select="position()"/>
					<xsl:text>. </xsl:text>
					<xsl:for-each select="para">
						<xsl:apply-templates select="." mode="para"/>
					</xsl:for-each>
				</div>
			</xsl:for-each>
		</xsl:if>
		<xsl:if test="name(.) = 'randomList'">
			<xsl:if test="title">
				<xsl:apply-templates select="title" mode="para"/>
			</xsl:if>
			<xsl:for-each select="listItem">
				<div class="indent">
					<xsl:if test="../@listItemPrefix = 'pf02'">
						<xsl:if test="$a1=1">
							<xsl:text>- </xsl:text>
						</xsl:if>
						<xsl:if test="$a1=2">
							<xsl:text>. </xsl:text>
						</xsl:if>
					</xsl:if>
					<xsl:if test="../@listItemPrefix = 'pf01'">
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="../@listItemPrefix = 'pf03'">
						<xsl:text>- </xsl:text>
					</xsl:if>
					<xsl:if test="../@listItemPrefix = 'pf04'">
						<xsl:text>⊙ </xsl:text>
					</xsl:if>
					<xsl:if test="../@listItemPrefix = 'pf05'">
						<xsl:text>○ </xsl:text>
					</xsl:if>
					<xsl:if test="../@listItemPrefix = 'pf06'">
						<xsl:text>□ </xsl:text>
					</xsl:if>
					<xsl:if test="../@listItemPrefix = 'pf07'">
						<xsl:text>• </xsl:text>
					</xsl:if>
					<xsl:for-each select="para">
						<xsl:apply-templates select="." mode="para"/>
					</xsl:for-each>
				</div>
			</xsl:for-each>
		</xsl:if>
		<xsl:if test="name(.) = 'definitionList'">
			<table class="tableIndent">
				<xsl:if test="title">
					<!--<caption class="tableTitle">表 %TABLENO% <xsl:value-of select="title"/></caption>-->
				</xsl:if>
				<tbody>
					<xsl:for-each select="definitionListHeader">
						<tr>
							<th>
								<xsl:value-of select="termTitle"/>
							</th>
							<th>
								<xsl:value-of select="definitionTitle"/>
							</th>
						</tr>
					</xsl:for-each>
					<xsl:for-each select="definitionListItem">
						<tr>
							<xsl:if test="listItemTerm">
								<td class="clear">
									<xsl:value-of select="listItemTerm"/>
								</td>
								<td class="clear">
									<xsl:apply-templates select="listItemDefinition/para" mode="para"/>
								</td>
							</xsl:if>
						</tr>
					</xsl:for-each>
				</tbody>
			</table>
		</xsl:if>
		<xsl:if test="name(.) = 'attentionRandomList'">
		<xsl:for-each select="attentionRandomListItem">
			<div class="indent">
				<xsl:for-each select="attentionListItemPara">
					<xsl:text>- </xsl:text><xsl:apply-templates select="." mode="para"/>
				</xsl:for-each>
			</div>
		</xsl:for-each>
		
	</xsl:if>
		
	</xsl:template>
	<!--para节点解析-->
	<xsl:template match="*" mode="para">
		<xsl:choose>
			<xsl:when test="./child::*">
				<xsl:value-of select="./text()"/>
				<xsl:for-each select="*">
					<!--para节点-->
					<xsl:if test="name(.) = 'para'">
						<xsl:apply-templates select="." mode="para"/>
					</xsl:if>
					<!--internalRef节点-->
					<xsl:if test="name(.) = 'internalRef'">
						<xsl:apply-templates select="." mode="internalRef11"/>
					</xsl:if>
					
					<xsl:if test="name(.) = 'randomList'">
							<xsl:if test="title">
								<xsl:apply-templates select="title" mode="para"/>
							</xsl:if>
								<xsl:for-each select="listItem">
									<div class="indent1">
									    <xsl:choose>
											<xsl:when test="../@listItemPrefix = 'pf01'">
											    <xsl:text> </xsl:text>
											</xsl:when>
											<xsl:when test="../@listItemPrefix = 'pf03'">
											  <xsl:text>- </xsl:text>
											</xsl:when>
											<xsl:when test="../@listItemPrefix = 'pf04'">
											    <xsl:text>⊙ </xsl:text>
											</xsl:when>
											<xsl:when test="../@listItemPrefix = 'pf05'">
											    <xsl:text>○ </xsl:text>
											</xsl:when>
											<xsl:when test="../@listItemPrefix = 'pf06'">
											    <xsl:text>□ </xsl:text>
											</xsl:when>
											<xsl:when test="../@listItemPrefix = 'pf07'">
											    <xsl:text>• </xsl:text>
											</xsl:when>
											<xsl:otherwise>
												 <xsl:text>- </xsl:text>
											</xsl:otherwise>
											
										</xsl:choose>
									<!--	<xsl:if test="../@listItemPrefix = 'pf02'">
												<xsl:text>- </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf01'">
											<xsl:text> </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf03'">
											<xsl:text>- </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf04'">
											<xsl:text>⊙ </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf05'">
											<xsl:text>○ </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf06'">
											<xsl:text>□ </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf07'">
											<xsl:text>• </xsl:text>
										</xsl:if>-->
										<xsl:for-each select="para">
											<xsl:apply-templates select="." mode="para1"/>
										</xsl:for-each>
									</div>
								</xsl:for-each>
												
					</xsl:if>	
						
					
					
					<!--list节点-->
					<xsl:if test="name(.) = 'sequentialList'  or name(.) = 'definitionList'  or name(.) = 'attentionRandomList'">
						<xsl:apply-templates select="." mode="list">
							<xsl:with-param name="a1">
								<xsl:value-of select="position() + 1"/>
							</xsl:with-param>
						</xsl:apply-templates>
					</xsl:if>
					<!--superScript节点-->
					<xsl:if test="name(.) = 'superScript'">
						<sup>
							<xsl:value-of select="."/>
						</sup>
					</xsl:if>
					<!--subScript节点-->
					<xsl:if test="name(.) = 'subScript'">
						<sub>
							<xsl:value-of select="."/>
						</sub>
					</xsl:if>
					<!--symbol节点-->
					<xsl:if test="name(.) = 'symbol'">
						<xsl:choose>
							<xsl:when test="./@infoEntityIdent">
								<xsl:element name="image">
									<xsl:attribute name="alt">symbol</xsl:attribute>
									<xsl:attribute name="height">100</xsl:attribute>
									<xsl:attribute name="src">%PATH%/<xsl:value-of select="./@infoEntityIdent"/>.%ext%</xsl:attribute>
								</xsl:element>
							
							</xsl:when>
							<xsl:otherwise>
								<img src="/img/symbol.jpg" alt="symbol"/>
							</xsl:otherwise>
						</xsl:choose>
						
					</xsl:if>
					<!--emphasis节点-->
					<xsl:if test="name(.) = 'emphasis'">
						<xsl:apply-templates select="." mode="emphasis"/>
					</xsl:if>
					<!--dmRef节点-->
					<xsl:if test="name(.) = 'dmRef'">
						<xsl:apply-templates select="." mode="dmRef"/>
					</xsl:if>
					<xsl:apply-templates select=".." mode="text">
						<xsl:with-param name="dnum">
							<xsl:value-of select="position() + 1"/>
						</xsl:with-param>
					</xsl:apply-templates>
				</xsl:for-each>
			</xsl:when>
			<xsl:otherwise>
				<xsl:value-of select="."/>
				<br/>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	
		<xsl:template match="*" mode="para1">
		<xsl:choose>
			<xsl:when test="./child::*">
				<xsl:value-of select="./text()"/>
				<xsl:for-each select="*">
				
					<!--internalRef节点-->
					<xsl:if test="name(.) = 'internalRef'">
						<xsl:apply-templates select="." mode="internalRef"/>
					</xsl:if>
					
					<xsl:if test="name(.) = 'randomList'">
							<xsl:if test="title">
								<xsl:apply-templates select="title" mode="para"/>
							</xsl:if>
								<xsl:for-each select="listItem">
									<div class="indent1">
									<xsl:choose>
											<xsl:when test="../@listItemPrefix = 'pf01'">
											    <xsl:text> </xsl:text>
											</xsl:when>
											<xsl:when test="../@listItemPrefix = 'pf03'">
											  <xsl:text>- </xsl:text>
											</xsl:when>
											<xsl:when test="../@listItemPrefix = 'pf04'">
											    <xsl:text>⊙ </xsl:text>
											</xsl:when>
											<xsl:when test="../@listItemPrefix = 'pf05'">
											    <xsl:text>○ </xsl:text>
											</xsl:when>
											<xsl:when test="../@listItemPrefix = 'pf06'">
											    <xsl:text>□ </xsl:text>
											</xsl:when>
											<xsl:when test="../@listItemPrefix = 'pf07'">
											    <xsl:text>• </xsl:text>
											</xsl:when>
											<xsl:otherwise>
												 <xsl:text>• </xsl:text>
											</xsl:otherwise>
											
										</xsl:choose>
										<!--<xsl:if test="../@listItemPrefix = 'pf02'">
												<xsl:text>. </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf01'">
											<xsl:text> </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf03'">
											<xsl:text>- </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf04'">
											<xsl:text>⊙ </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf05'">
											<xsl:text>○ </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf06'">
											<xsl:text>□ </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf07'">
											<xsl:text>• </xsl:text>
										</xsl:if>-->
										<xsl:for-each select="para">
											<xsl:apply-templates select="." mode="para2"/>
										</xsl:for-each>
									</div>
								</xsl:for-each>
												
					</xsl:if>	
						
					
					
					<!--list节点-->
					<xsl:if test="name(.) = 'sequentialList'  or name(.) = 'definitionList'">
						<xsl:apply-templates select="." mode="list">
							<xsl:with-param name="a1">
								<xsl:value-of select="position() + 1"/>
							</xsl:with-param>
						</xsl:apply-templates>
					</xsl:if>
					<!--superScript节点-->
					<xsl:if test="name(.) = 'superScript'">
						<sup>
							<xsl:value-of select="."/>
						</sup>
					</xsl:if>
					<!--subScript节点-->
					<xsl:if test="name(.) = 'subScript'">
						<sub>
							<xsl:value-of select="."/>
						</sub>
					</xsl:if>
					<!--symbol节点-->
					<xsl:if test="name(.) = 'symbol'">
						<xsl:choose>
							<xsl:when test="./@infoEntityIdent">
								<xsl:element name="image">
									<xsl:attribute name="alt">symbol</xsl:attribute>
									<xsl:attribute name="height">100</xsl:attribute>
									<xsl:attribute name="src">%PATH%/<xsl:value-of select="./@infoEntityIdent"/>.%ext%</xsl:attribute>
								</xsl:element>
							
							</xsl:when>
							<xsl:otherwise>
								<img src="/img/symbol.jpg" alt="symbol"/>
							</xsl:otherwise>
						</xsl:choose>
						
					</xsl:if>
					<!--emphasis节点-->
					<xsl:if test="name(.) = 'emphasis'">
						<xsl:apply-templates select="." mode="emphasis"/>
					</xsl:if>
					<!--dmRef节点-->
					<xsl:if test="name(.) = 'dmRef'">
						<xsl:apply-templates select="." mode="dmRef"/>
					</xsl:if>
					<xsl:apply-templates select=".." mode="text">
						<xsl:with-param name="dnum">
							<xsl:value-of select="position() + 1"/>
						</xsl:with-param>
					</xsl:apply-templates>
				</xsl:for-each>
			</xsl:when>
			<xsl:otherwise>
				<xsl:value-of select="."/>
				<br/>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	
			<xsl:template match="*" mode="para2">
		<xsl:choose>
			<xsl:when test="./child::*">
				<xsl:value-of select="./text()"/>
				<xsl:for-each select="*">
				
					<!--internalRef节点-->
					<xsl:if test="name(.) = 'internalRef'">
						<xsl:apply-templates select="." mode="internalRef"/>
					</xsl:if>
					
					<xsl:if test="name(.) = 'randomList'">
							<xsl:if test="title">
								<xsl:apply-templates select="title" mode="para"/>
							</xsl:if>
								<xsl:for-each select="listItem">
									<div class="indent1">
									    <xsl:choose>
											<xsl:when test="../@listItemPrefix = 'pf01'">
											    <xsl:text> </xsl:text>
											</xsl:when>
											<xsl:when test="../@listItemPrefix = 'pf03'">
											  <xsl:text>- </xsl:text>
											</xsl:when>
											<xsl:when test="../@listItemPrefix = 'pf04'">
											    <xsl:text>⊙ </xsl:text>
											</xsl:when>
											<xsl:when test="../@listItemPrefix = 'pf05'">
											    <xsl:text>○ </xsl:text>
											</xsl:when>
											<xsl:when test="../@listItemPrefix = 'pf06'">
											    <xsl:text>□ </xsl:text>
											</xsl:when>
											<xsl:when test="../@listItemPrefix = 'pf07'">
											    <xsl:text>• </xsl:text>
											</xsl:when>
											<xsl:otherwise>
												 <xsl:text>- </xsl:text>
											</xsl:otherwise>
											
										</xsl:choose>
										<!--<xsl:if test="../@listItemPrefix = 'pf02'">
												<xsl:text>- </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf01'">
											<xsl:text> </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf03'">
											<xsl:text>- </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf04'">
											<xsl:text>⊙ </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf05'">
											<xsl:text>○ </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf06'">
											<xsl:text>□ </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf07'">
											<xsl:text>• </xsl:text>
										</xsl:if>-->
										<xsl:for-each select="para">
											<xsl:apply-templates select="." mode="para3"/>
										</xsl:for-each>
									</div>
								</xsl:for-each>
												
					</xsl:if>	
						
					
					
					<!--list节点-->
					<xsl:if test="name(.) = 'sequentialList'  or name(.) = 'definitionList'">
						<xsl:apply-templates select="." mode="list">
							<xsl:with-param name="a1">
								<xsl:value-of select="position() + 1"/>
							</xsl:with-param>
						</xsl:apply-templates>
					</xsl:if>
					<!--superScript节点-->
					<xsl:if test="name(.) = 'superScript'">
						<sup>
							<xsl:value-of select="."/>
						</sup>
					</xsl:if>
					<!--subScript节点-->
					<xsl:if test="name(.) = 'subScript'">
						<sub>
							<xsl:value-of select="."/>
						</sub>
					</xsl:if>
					<!--symbol节点-->
					<xsl:if test="name(.) = 'symbol'">
						<xsl:choose>
							<xsl:when test="./@infoEntityIdent">
								<xsl:element name="image">
									<xsl:attribute name="alt">symbol</xsl:attribute>
									<xsl:attribute name="height">100</xsl:attribute>
									<xsl:attribute name="src">%PATH%/<xsl:value-of select="./@infoEntityIdent"/>.%ext%</xsl:attribute>
								</xsl:element>
							
							</xsl:when>
							<xsl:otherwise>
								<img src="/img/symbol.jpg" alt="symbol"/>
							</xsl:otherwise>
						</xsl:choose>
						
					</xsl:if>
					<!--emphasis节点-->
					<xsl:if test="name(.) = 'emphasis'">
						<xsl:apply-templates select="." mode="emphasis"/>
					</xsl:if>
					<!--dmRef节点-->
					<xsl:if test="name(.) = 'dmRef'">
						<xsl:apply-templates select="." mode="dmRef"/>
					</xsl:if>
					<xsl:apply-templates select=".." mode="text">
						<xsl:with-param name="dnum">
							<xsl:value-of select="position() + 1"/>
						</xsl:with-param>
					</xsl:apply-templates>
				</xsl:for-each>
			</xsl:when>
			<xsl:otherwise>
				<xsl:value-of select="."/>
				<br/>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	

    	<xsl:template match="*" mode="para3">
		<xsl:choose>
			<xsl:when test="./child::*">
				<xsl:value-of select="./text()"/>
				<xsl:for-each select="*">
				
					<!--internalRef节点-->
					<xsl:if test="name(.) = 'internalRef'">
						<xsl:apply-templates select="." mode="internalRef"/>
					</xsl:if>
					
					<xsl:if test="name(.) = 'randomList'">
							<xsl:if test="title">
								<xsl:apply-templates select="title" mode="para"/>
							</xsl:if>
								<xsl:for-each select="listItem">
									<div class="indent1">
									    <xsl:choose>
											<xsl:when test="../@listItemPrefix = 'pf01'">
											    <xsl:text> </xsl:text>
											</xsl:when>
											<xsl:when test="../@listItemPrefix = 'pf03'">
											  <xsl:text>- </xsl:text>
											</xsl:when>
											<xsl:when test="../@listItemPrefix = 'pf04'">
											    <xsl:text>⊙ </xsl:text>
											</xsl:when>
											<xsl:when test="../@listItemPrefix = 'pf05'">
											    <xsl:text>○ </xsl:text>
											</xsl:when>
											<xsl:when test="../@listItemPrefix = 'pf06'">
											    <xsl:text>□ </xsl:text>
											</xsl:when>
											<xsl:when test="../@listItemPrefix = 'pf07'">
											    <xsl:text>• </xsl:text>
											</xsl:when>
											<xsl:otherwise>
												 <xsl:text>- </xsl:text>
											</xsl:otherwise>
											
										</xsl:choose>
										<!--<xsl:if test="../@listItemPrefix = 'pf02'">
												<xsl:text>. </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf01'">
											<xsl:text> </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf03'">
											<xsl:text>- </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf04'">
											<xsl:text>⊙ </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf05'">
											<xsl:text>○ </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf06'">
											<xsl:text>□ </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf07'">
											<xsl:text>• </xsl:text>
										</xsl:if>-->
										<xsl:for-each select="para">
											<xsl:apply-templates select="." mode="para4"/>
										</xsl:for-each>
									</div>
								</xsl:for-each>
												
					</xsl:if>	
						
					
					
					<!--list节点-->
					<xsl:if test="name(.) = 'sequentialList'  or name(.) = 'definitionList'">
						<xsl:apply-templates select="." mode="list">
							<xsl:with-param name="a1">
								<xsl:value-of select="position() + 1"/>
							</xsl:with-param>
						</xsl:apply-templates>
					</xsl:if>
					<!--superScript节点-->
					<xsl:if test="name(.) = 'superScript'">
						<sup>
							<xsl:value-of select="."/>
						</sup>
					</xsl:if>
					<!--subScript节点-->
					<xsl:if test="name(.) = 'subScript'">
						<sub>
							<xsl:value-of select="."/>
						</sub>
					</xsl:if>
					<!--symbol节点-->
					<xsl:if test="name(.) = 'symbol'">
						<xsl:choose>
							<xsl:when test="./@infoEntityIdent">
								<xsl:element name="image">
									<xsl:attribute name="alt">symbol</xsl:attribute>
									<xsl:attribute name="height">100</xsl:attribute>
									<xsl:attribute name="src">%PATH%/<xsl:value-of select="./@infoEntityIdent"/>.%ext%</xsl:attribute>
								</xsl:element>
							
							</xsl:when>
							<xsl:otherwise>
								<img src="/img/symbol.jpg" alt="symbol"/>
							</xsl:otherwise>
						</xsl:choose>
						
					</xsl:if>
					<!--emphasis节点-->
					<xsl:if test="name(.) = 'emphasis'">
						<xsl:apply-templates select="." mode="emphasis"/>
					</xsl:if>
					<!--dmRef节点-->
					<xsl:if test="name(.) = 'dmRef'">
						<xsl:apply-templates select="." mode="dmRef"/>
					</xsl:if>
					<xsl:apply-templates select=".." mode="text">
						<xsl:with-param name="dnum">
							<xsl:value-of select="position() + 1"/>
						</xsl:with-param>
					</xsl:apply-templates>
				</xsl:for-each>
			</xsl:when>
			<xsl:otherwise>
				<xsl:value-of select="."/>
				<br/>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	
	    	<xsl:template match="*" mode="para4">
		<xsl:choose>
			<xsl:when test="./child::*">
				<xsl:value-of select="./text()"/>
				<xsl:for-each select="*">
				
					<!--internalRef节点-->
					<xsl:if test="name(.) = 'internalRef'">
						<xsl:apply-templates select="." mode="internalRef"/>
					</xsl:if>
					
					<xsl:if test="name(.) = 'randomList'">
							<xsl:if test="title">
								<xsl:apply-templates select="title" mode="para"/>
							</xsl:if>
								<xsl:for-each select="listItem">
									<div class="indent1">
									    <xsl:choose>
											<xsl:when test="../@listItemPrefix = 'pf01'">
											    <xsl:text> </xsl:text>
											</xsl:when>
											<xsl:when test="../@listItemPrefix = 'pf03'">
											  <xsl:text>- </xsl:text>
											</xsl:when>
											<xsl:when test="../@listItemPrefix = 'pf04'">
											    <xsl:text>⊙ </xsl:text>
											</xsl:when>
											<xsl:when test="../@listItemPrefix = 'pf05'">
											    <xsl:text>○ </xsl:text>
											</xsl:when>
											<xsl:when test="../@listItemPrefix = 'pf06'">
											    <xsl:text>□ </xsl:text>
											</xsl:when>
											<xsl:when test="../@listItemPrefix = 'pf07'">
											    <xsl:text>• </xsl:text>
											</xsl:when>
											<xsl:otherwise>
												 <xsl:text>- </xsl:text>
											</xsl:otherwise>
											
										</xsl:choose>
										<!--<xsl:if test="../@listItemPrefix = 'pf02'">
												<xsl:text>. </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf01'">
											<xsl:text> </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf03'">
											<xsl:text>- </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf04'">
											<xsl:text>⊙ </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf05'">
											<xsl:text>○ </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf06'">
											<xsl:text>□ </xsl:text>
										</xsl:if>
										<xsl:if test="../@listItemPrefix = 'pf07'">
											<xsl:text>• </xsl:text>
										</xsl:if>-->
										<xsl:for-each select="para">
											<xsl:apply-templates select="." mode="para4"/>
										</xsl:for-each>
									</div>
								</xsl:for-each>
												
					</xsl:if>	
						
					
					
					<!--list节点-->
					<xsl:if test="name(.) = 'sequentialList'  or name(.) = 'definitionList'">
						<xsl:apply-templates select="." mode="list">
							<xsl:with-param name="a1">
								<xsl:value-of select="position() + 1"/>
							</xsl:with-param>
						</xsl:apply-templates>
					</xsl:if>
					<!--superScript节点-->
					<xsl:if test="name(.) = 'superScript'">
						<sup>
							<xsl:value-of select="."/>
						</sup>
					</xsl:if>
					<!--subScript节点-->
					<xsl:if test="name(.) = 'subScript'">
						<sub>
							<xsl:value-of select="."/>
						</sub>
					</xsl:if>
					<!--symbol节点-->
					<xsl:if test="name(.) = 'symbol'">
						<xsl:choose>
							<xsl:when test="./@infoEntityIdent">
								<xsl:element name="image">
									<xsl:attribute name="alt">symbol</xsl:attribute>
									<xsl:attribute name="height">100</xsl:attribute>
									<xsl:attribute name="src">%PATH%/<xsl:value-of select="./@infoEntityIdent"/>.%ext%</xsl:attribute>
								</xsl:element>
							
							</xsl:when>
							<xsl:otherwise>
								<img src="/img/symbol.jpg" alt="symbol"/>
							</xsl:otherwise>
						</xsl:choose>
						
					</xsl:if>
					<!--emphasis节点-->
					<xsl:if test="name(.) = 'emphasis'">
						<xsl:apply-templates select="." mode="emphasis"/>
					</xsl:if>
					<!--dmRef节点-->
					<xsl:if test="name(.) = 'dmRef'">
						<xsl:apply-templates select="." mode="dmRef"/>
					</xsl:if>
					<xsl:apply-templates select=".." mode="text">
						<xsl:with-param name="dnum">
							<xsl:value-of select="position() + 1"/>
						</xsl:with-param>
					</xsl:apply-templates>
				</xsl:for-each>
			</xsl:when>
			<xsl:otherwise>
				<xsl:value-of select="."/>
				<br/>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
		
	
	
	
	<!--emphasis内容解析-->
	<xsl:template match="*" mode="emphasis">
		<xsl:choose>
			<xsl:when test="@emphasisType">
				<!--em01节点(加粗)-->
				<xsl:if test="@emphasisType = 'em01'">
					<b>
						<xsl:value-of select="."/>
					</b>
				</xsl:if>
				<!--em02节点(斜体)-->
				<xsl:if test="@emphasisType = 'em02'">
					<i>
						<xsl:value-of select="."/>
					</i>
				</xsl:if>
				<!--em03节点(下划线)-->
				<xsl:if test="@emphasisType = 'em03'">
					<span style="TEXT-DECORATION: underline">
						<xsl:value-of select="."/>
					</span>
				</xsl:if>
				<!--em04节点(上划线)-->
				<xsl:if test="@emphasisType = 'em04'">
					<span style="TEXT-DECORATION: overline">
						<xsl:value-of select="."/>
					</span>
				</xsl:if>
				<!--em05节点(删除线)-->
				<xsl:if test="@emphasisType = 'em05'">
					<span style="TEXT-DECORATION: line-through">
						<xsl:value-of select="."/>
					</span>
				</xsl:if>
			</xsl:when>
			<xsl:otherwise>
				<!--em节点(加粗)默认情况-->
				<xsl:choose>
					<xsl:when test="./child::*">
						<b>
							<xsl:apply-templates select="." mode="para"/>
						</b>
					</xsl:when>
					<xsl:otherwise>
						<b>
							<xsl:value-of select="."/>
						</b>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	<!--text内容解析-->
	<xsl:template match="*" mode="text">
		<xsl:param name="dnum"/>
		<xsl:value-of select="text()[number($dnum)]"/>
	</xsl:template>
	<!--para_warning_caution_note内容解析-->
<xsl:template match="*" mode="para_warning_caution_note">

	<!--para节点-->
	<xsl:if test="name(.) = 'para'">
		<p class="indent">
			<xsl:apply-templates select="." mode="para"/>
		</p>
	</xsl:if>
	<!--warning节点-->
	<xsl:if test="name(.) = 'warning'">

		<div class="warningborder">
		<div class="warning">
		<table cellspacing="0" align="center">
		<tr align="center" valign="middle">
		<td align="center"><b>警告</b></td>
		</tr>
		<tr>
		<td>
		<ul>
		<li>
									
		<span><a name="N10128"></a>
			<p class="warnText">
					<xsl:apply-templates select="warningAndCautionPara" mode="para"/>
				</p> </span>
								
		</li>
		</ul>
		</td>
		</tr>
		<tr>
		<td style="lineHeight:2px;" STYLE="font-size:1">
		<div class="hideprint">
		<font height="2px" size="1" color="FFFFFF"> </font>
		</div>
		</td>
		</tr>
		</table>
		</div>
		</div>		
	</xsl:if>
	<!--caution节点-->
<xsl:if test="name(.) = 'caution'">
	<div class="cautionborder">
	<div class="warning">
	<table cellspacing="0" align="center">
	<tr align="center" valign="middle">
	<td align="center"><b>注意</b></td>
	</tr>
	<tr>
	<td>
	<ul>
	<li>
							
	<span><a name="N10172"></a>
		<p class="cautText">
				<xsl:apply-templates select="warningAndCautionPara" mode="para"/>
			</p></span>
						
	</li>
	</ul>
	</td>
	</tr>
	<tr>
	<td style="lineHeight:2px;" STYLE="font-size:1">
	<div class="hideprint">
	<font height="2px" size="1" color="FFFFFF"> </font>
	</div>
	</td>
	</tr>
	</table>
	</div>
	</div>	
		
	</xsl:if>
	<!--note节点-->
	<xsl:if test="name(.) = 'note'">
				<!--<p class="noteTitle">提示</p>-->
				<xsl:if test="notePara">
				
				
				<div class="noteborder">
		<div class="note">
		<table cellspacing="0" border="0" align="center">
		<tr align="center" valign="middle">
		<td align="center"><b>提示</b></td>
		</tr>
		<tr>
		<td>
									<span>
					<xsl:for-each select="notePara">
						<p class="noteText">
							<xsl:apply-templates select="." mode="para"/>
						</p>
					</xsl:for-each></span>
								</td>
		</tr>
		<tr>
		<td style="lineHeight:2px;" STYLE="font-size:1">
		<div class="hideprint">
		<font height="2px" size="1" color="FFFFFF"> </font>
		</div>
		</td>
		</tr>
		</table>
		</div>
		</div>
				</xsl:if>
</xsl:if>
</xsl:template>
	<!--refs内容解析-->
	<xsl:template match="*" mode="refs">
		<p class="titleItalic">参考</p>
		<table cellspacing="0" class="bordered">
			<caption class="tableTitle">表 %TABLENO% 参考</caption>
			<colgroup>
				<col/>
				<col/>
			</colgroup>
			<thead>
				<tr>
					<th class="bordered">
						<p class="table">数据模块/技术出版物</p>
					</th>
					<th class="bordered">
						<p class="table">标题</p>
					</th>
				</tr>
			</thead>
			<tbody>
				<xsl:for-each select="dmRef|pmRef|externalPubRef">
					<tr>
						<td class="bordered">
							<p class="table">
								<xsl:if test="name(.) = 'dmRef'">
									<xsl:apply-templates select="." mode="dmRef"/>
								</xsl:if>
								<xsl:if test="name(.) = 'pmRef'">
									<a>
										<xsl:apply-templates select="pmRefIdent/pmCode" mode="pmCode"/>
									</a>
								</xsl:if>
								<xsl:if test="name(.) = 'externalPubRef'">
									<a>
										<xsl:value-of select="externalPubRefIdent/externalPubCode/@pubCodingScheme"/> - 
							<xsl:value-of select="externalPubRefIdent/externalPubCode"/>
									</a>
								</xsl:if>
							</p>
						</td>
						<td class="bordered">
							<p class="table">
								<xsl:if test="name(.) = 'dmRef'">
									<xsl:value-of select="dmRefAddressItems/dmTitle/techName"/>-<xsl:value-of select="dmRefAddressItems/dmTitle/infoName"/>
								</xsl:if>
								<xsl:if test="name(.) = 'pmRef'">
									<xsl:value-of select="pmRefAddressItems/pmTitle"/>
								</xsl:if>
								<xsl:if test="name(.) = 'externalPubRef'">
									<xsl:value-of select="externalPubRefIdent/externalPubTitle"/>
								</xsl:if>
							</p>
						</td>
					</tr>
				</xsl:for-each>
			</tbody>
		</table>
	</xsl:template>
	<!--internalRef内容解析-->
	<xsl:template match="*" mode="internalRef">
		<xsl:param name="name">
			<xsl:value-of select="@internalRefTargetType"/>
		</xsl:param>
		<xsl:param name="value">
			<xsl:value-of select="normalize-space(@internalRefId)"/>
		</xsl:param>
		<xsl:param name="text"/>
		<!--para-->
		<xsl:if test="$name = 'para'">
			<a>
				<xsl:attribute name="name"><xsl:value-of select="$name"/></xsl:attribute>
				<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
				<xsl:choose>
					<xsl:when test="$text=''">
						<xsl:text>段落 </xsl:text>
					</xsl:when>
					<xsl:otherwise>
						<xsl:value-of select="$text"/>
						<xsl:text> </xsl:text>
					</xsl:otherwise>
				</xsl:choose>
			</a>
		</xsl:if>
		<!--figure-->
		<xsl:if test="$name = 'figure'">
			<xsl:for-each select="//*">
				<xsl:if test="name(.)=$name">
					<xsl:if test="@id=$value">
						<a>
							<xsl:attribute name="name"><xsl:value-of select="$name"/></xsl:attribute>
							<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
							<xsl:choose>
								<xsl:when test="$text=''">
									<xsl:text>多媒体</xsl:text>
									<xsl:text/>
								</xsl:when>
								<xsl:otherwise>
									<xsl:value-of select="$text"/>
									<xsl:text> </xsl:text>
								</xsl:otherwise>
							</xsl:choose>
						</a>
					</xsl:if>
				</xsl:if>
			</xsl:for-each>
		</xsl:if>
		<!--supequip-->
		<xsl:if test="$name = 'supequip'">
			<xsl:for-each select="//supportEquipDescrGroup">
				<xsl:for-each select="supportEquipDescr">
					<xsl:if test="@id = $value">
						<a>
							<xsl:attribute name="name"><xsl:value-of select="$name"/></xsl:attribute>
							<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
							<xsl:value-of select="name"/>
						</a>
					</xsl:if>
				</xsl:for-each>
			</xsl:for-each>
		</xsl:if>
		<!--supply-->
		<xsl:if test="$name = 'supply'">
			<xsl:for-each select="//supplyDescrGroup">
				<xsl:for-each select="supplyDescr">
					<xsl:if test="@id = $value">
						<a>
							<xsl:attribute name="name"><xsl:value-of select="$name"/></xsl:attribute>
							<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
							<xsl:value-of select="name"/>
						</a>
					</xsl:if>
				</xsl:for-each>
			</xsl:for-each>
		</xsl:if>
		<!--spares-->
		<xsl:if test="$name = 'spares'">
			<xsl:for-each select="//spareDescrGroup">
				<xsl:for-each select="spareDescr">
					<xsl:if test="@id = $value">
						<a>
							<xsl:attribute name="name"><xsl:value-of select="$name"/></xsl:attribute>
							<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
							<xsl:value-of select="name"/>
						</a>
					</xsl:if>
				</xsl:for-each>
			</xsl:for-each>
		</xsl:if>
		<!--step-->
		<xsl:if test="$name = 'step'">
			<a>
				<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
				<xsl:choose>
					<xsl:when test="$text=''">
						<xsl:text>步骤 </xsl:text>
						<xsl:text> </xsl:text>
					</xsl:when>
					<xsl:otherwise>
						<xsl:value-of select="$text"/>
						<xsl:text> </xsl:text>
					</xsl:otherwise>
				</xsl:choose>
			</a>
		</xsl:if>
		<!--table-->
		<xsl:if test="$name = 'table'">
			<a>
				<xsl:attribute name="name"><xsl:value-of select="$name"/></xsl:attribute>
				<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
				<xsl:choose>
					<xsl:when test="$text=''">
						<xsl:text>表格 </xsl:text>
						<xsl:text> </xsl:text>
					</xsl:when>
					<xsl:otherwise>
						<xsl:value-of select="$text"/>
						<xsl:text> </xsl:text>
					</xsl:otherwise>
				</xsl:choose>
			</a>
		</xsl:if>
		<!--irtt01-->
		<xsl:if test="$name = 'irtt01'">
			<a>
				<xsl:attribute name="name"><xsl:value-of select="$name"/></xsl:attribute>
				<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
				<xsl:choose>
					<xsl:when test="$text=''">
						<xsl:text>多媒体 </xsl:text>
						<xsl:text> </xsl:text>
					</xsl:when>
					<xsl:otherwise>
						<xsl:value-of select="$text"/>
						<xsl:text> </xsl:text>
					</xsl:otherwise>
				</xsl:choose>
			</a>
		</xsl:if>
		<!--irtt02-->
		<xsl:if test="$name = 'irtt02'">
			<a>
				<xsl:attribute name="name"><xsl:value-of select="$name"/></xsl:attribute>
				<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
				<xsl:choose>
					<xsl:when test="$text=''">
						<xsl:text>表格 </xsl:text>
						<xsl:text> </xsl:text>
					</xsl:when>
					<xsl:otherwise>
						<xsl:value-of select="$text"/>
						<xsl:text> </xsl:text>
					</xsl:otherwise>
				</xsl:choose>
			</a>
		</xsl:if>
		<!--irtt05-->
		<xsl:if test="$name = 'irtt05'">
			<xsl:for-each select="//supportEquipDescrGroup">
				<xsl:for-each select="supportEquipDescr">
					<xsl:if test="@id = $value">
						<a>
							<xsl:attribute name="name"><xsl:value-of select="$name"/></xsl:attribute>
							<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
							<xsl:value-of select="name"/>
						</a>
					</xsl:if>
				</xsl:for-each>
			</xsl:for-each>
		</xsl:if>
		<!--irtt07-->
		<xsl:if test="$name = 'irtt07'">
			<a>
				<xsl:attribute name="name"><xsl:value-of select="$name"/></xsl:attribute>
				<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
				<xsl:choose>
					<xsl:when test="$text=''">
						<xsl:text>段落 </xsl:text>
						<xsl:text> </xsl:text>
					</xsl:when>
					<xsl:otherwise>
						<xsl:value-of select="$text"/>
						<xsl:text> </xsl:text>
					</xsl:otherwise>
				</xsl:choose>
			</a>
		</xsl:if>
		<!--irtt11-->
		<xsl:if test="$name = 'irtt11'">
			<a>
				<xsl:attribute name="name"><xsl:value-of select="$name"/></xsl:attribute>
				<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
				<xsl:choose>
					<xsl:when test="$text=''">
						<xsl:text>多媒体 </xsl:text>
						<xsl:text> </xsl:text>
					</xsl:when>
					<xsl:otherwise>
						<xsl:value-of select="$text"/>
						<xsl:text> </xsl:text>
					</xsl:otherwise>
				</xsl:choose>
			</a>
		</xsl:if>
		<!--hotspot-->
		<xsl:if test="$name = 'hotspot'">
			<a>
				<xsl:attribute name="name"><xsl:value-of select="$name"/></xsl:attribute>
				<!--<xsl:attribute name="href"><xsl:value-of select="../@infoEntityIdent"/></xsl:attribute>-->
				<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
				
				<xsl:attribute name="hotspot">
				<!--<xsl:value-of select="$value"/>-->
				<xsl:call-template name="handlepagefragment">
					 <xsl:with-param name="appId" select="@internalRefId"/>
				</xsl:call-template>
				</xsl:attribute>
				
				<xsl:attribute name="infoEntityIdent">
					<xsl:call-template name="handlepagefragment1">
						 <xsl:with-param name="appId1" select="@internalRefId"/>
					</xsl:call-template>
				</xsl:attribute>
		
				<xsl:choose>
					<xsl:when test="$text=''">
						<xsl:text>多媒体</xsl:text>
						<xsl:text> </xsl:text>
					</xsl:when>
					<xsl:otherwise>
						<xsl:value-of select="$text"/>
						<xsl:text> </xsl:text>
					</xsl:otherwise>
				</xsl:choose>
			</a>
		</xsl:if>
	</xsl:template>
	
	<xsl:template match="*" mode="internalRef11">
		<xsl:param name="name">
			<xsl:value-of select="@internalRefTargetType"/>
		</xsl:param>
		<xsl:param name="value">
			<xsl:value-of select="normalize-space(@internalRefId)"/>
		</xsl:param>
		<xsl:param name="text"/>
		<!--para-->
		<xsl:if test="$name = 'para'">
			<a>
				<xsl:attribute name="name"><xsl:value-of select="$name"/></xsl:attribute>
				<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
				<xsl:choose>
					<xsl:when test="$text=''">
						<xsl:text>段落 </xsl:text>
					</xsl:when>
					<xsl:otherwise>
						<xsl:value-of select="$text"/>
						<xsl:text> </xsl:text>
					</xsl:otherwise>
				</xsl:choose>
			</a>
		</xsl:if>
		<!--figure-->
		<xsl:if test="$name = 'figure'">
			<xsl:for-each select="//*">
				<xsl:if test="name(.)=$name">
					<xsl:if test="@id=$value">
						<a>
							<xsl:attribute name="name"><xsl:value-of select="$name"/></xsl:attribute>
							<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
							<xsl:choose>
								<xsl:when test="$text=''">
									<xsl:text>多媒体</xsl:text>
									<xsl:text/>
								</xsl:when>
								<xsl:otherwise>
									<xsl:value-of select="$text"/>
									<xsl:text> </xsl:text>
								</xsl:otherwise>
							</xsl:choose>
						</a>
					</xsl:if>
				</xsl:if>
			</xsl:for-each>
		</xsl:if>
		<!--supequip-->
		<xsl:if test="$name = 'supequip'">
			<xsl:for-each select="//supportEquipDescrGroup">
				<xsl:for-each select="supportEquipDescr">
					<xsl:if test="@id = $value">
						<a>
							<xsl:attribute name="name"><xsl:value-of select="$name"/></xsl:attribute>
							<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
							<xsl:value-of select="name"/>
						</a>
					</xsl:if>
				</xsl:for-each>
			</xsl:for-each>
		</xsl:if>
		<!--supply-->
		<xsl:if test="$name = 'supply'">
			<xsl:for-each select="//supplyDescrGroup">
				<xsl:for-each select="supplyDescr">
					<xsl:if test="@id = $value">
						<a>
							<xsl:attribute name="name"><xsl:value-of select="$name"/></xsl:attribute>
							<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
							<xsl:value-of select="name"/>
						</a>
					</xsl:if>
				</xsl:for-each>
			</xsl:for-each>
		</xsl:if>
		<!--spares-->
		<xsl:if test="$name = 'spares'">
			<xsl:for-each select="//spareDescrGroup">
				<xsl:for-each select="spareDescr">
					<xsl:if test="@id = $value">
						<a>
							<xsl:attribute name="name"><xsl:value-of select="$name"/></xsl:attribute>
							<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
							<xsl:value-of select="name"/>
						</a>
					</xsl:if>
				</xsl:for-each>
			</xsl:for-each>
		</xsl:if>
		<!--step-->
		<xsl:if test="$name = 'step'">
			<a>
				<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
				<xsl:choose>
					<xsl:when test="$text=''">
						<xsl:text>步骤 </xsl:text>
						<xsl:text> </xsl:text>
					</xsl:when>
					<xsl:otherwise>
						<xsl:value-of select="$text"/>
						<xsl:text> </xsl:text>
					</xsl:otherwise>
				</xsl:choose>
			</a>
		</xsl:if>
		<!--table-->
		<xsl:if test="$name = 'table'">
			<a>
				<xsl:attribute name="name"><xsl:value-of select="$name"/></xsl:attribute>
				<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
				<xsl:choose>
					<xsl:when test="$text=''">
						<xsl:text>表格 </xsl:text>
						<xsl:text> </xsl:text>
					</xsl:when>
					<xsl:otherwise>
						<xsl:value-of select="$text"/>
						<xsl:text> </xsl:text>
					</xsl:otherwise>
				</xsl:choose>
			</a>
		</xsl:if>
		<!--irtt01-->
		<xsl:if test="$name = 'irtt01'">
			<a>
				<xsl:attribute name="name"><xsl:value-of select="$name"/></xsl:attribute>
				<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
				<xsl:choose>
					<xsl:when test="$text=''">
						<xsl:text>多媒体 </xsl:text>
						<xsl:text> </xsl:text>
					</xsl:when>
					<xsl:otherwise>
						<xsl:value-of select="$text"/>
						<xsl:text> </xsl:text>
					</xsl:otherwise>
				</xsl:choose>
			</a>
		</xsl:if>
		<!--irtt02-->
		<xsl:if test="$name = 'irtt02'">
			<a>
				<xsl:attribute name="name"><xsl:value-of select="$name"/></xsl:attribute>
				<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
				<xsl:choose>
					<xsl:when test="$text=''">
						<xsl:text>表格 </xsl:text>
						<xsl:text> </xsl:text>
					</xsl:when>
					<xsl:otherwise>
						<xsl:value-of select="$text"/>
						<xsl:text> </xsl:text>
					</xsl:otherwise>
				</xsl:choose>
			</a>
		</xsl:if>
		<!--irtt05-->
		<xsl:if test="$name = 'irtt05'">
			<xsl:for-each select="//supportEquipDescrGroup">
				<xsl:for-each select="supportEquipDescr">
					<xsl:if test="@id = $value">
						<a>
							<xsl:attribute name="name"><xsl:value-of select="$name"/></xsl:attribute>
							<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
							<xsl:value-of select="name"/>
						</a>
					</xsl:if>
				</xsl:for-each>
			</xsl:for-each>
		</xsl:if>
		<!--irtt07-->
		<xsl:if test="$name = 'irtt07'">
			<a>
				<xsl:attribute name="name"><xsl:value-of select="$name"/></xsl:attribute>
				<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
				<xsl:choose>
					<xsl:when test="$text=''">
						<xsl:text>段落 </xsl:text>
						<xsl:text> </xsl:text>
					</xsl:when>
					<xsl:otherwise>
						<xsl:value-of select="$text"/>
						<xsl:text> </xsl:text>
					</xsl:otherwise>
				</xsl:choose>
			</a>
		</xsl:if>
		<!--irtt11-->
		<xsl:if test="$name = 'irtt11'">
			<a>
				<xsl:attribute name="name"><xsl:value-of select="$name"/></xsl:attribute>
				<xsl:attribute name="href">#<xsl:value-of select="$value"/></xsl:attribute>
				<xsl:choose>
					<xsl:when test="$text=''">
						<xsl:text>多媒体 </xsl:text>
						<xsl:text> </xsl:text>
					</xsl:when>
					<xsl:otherwise>
						<xsl:value-of select="$text"/>
						<xsl:text> </xsl:text>
					</xsl:otherwise>
				</xsl:choose>
			</a>
		</xsl:if>
		<!--hotspot-->
		<xsl:if test="$name = 'hotspot'">
			<a>
				<xsl:attribute name="name"><xsl:value-of select="$name"/></xsl:attribute>
				<!--<xsl:attribute name="href"><xsl:value-of select="../@infoEntityIdent"/></xsl:attribute>-->
				<xsl:attribute name="href">#<!--<xsl:value-of select="$value"/>--></xsl:attribute>
			<xsl:attribute name="hotspot">
				<!--<xsl:value-of select="$value"/>-->
				<xsl:call-template name="handlepagefragment">
					 <xsl:with-param name="appId" select="@internalRefId"/>
				</xsl:call-template>
			</xsl:attribute>
			
			<xsl:attribute name="id">
				<!--<xsl:value-of select="$value"/>-->
				<xsl:call-template name="handlepagefragment9">
					 <xsl:with-param name="appId" select="@internalRefId"/>
				</xsl:call-template>
			</xsl:attribute>			
			
			
			<xsl:attribute name="infoEntityIdent">
				<xsl:call-template name="handlepagefragment1">
					 <xsl:with-param name="appId1" select="@internalRefId"/>
				</xsl:call-template>
			</xsl:attribute>

				
				<xsl:choose>
					<xsl:when test="$text=''">
						<xsl:text>多媒体[</xsl:text>
						<xsl:call-template name="handlepagefragment2">
							 <xsl:with-param name="appId" select="@internalRefId"/>
						</xsl:call-template>					
						<!--<xsl:value-of select="number(substring(./@internalRefId,23,4))"/>-->
						<xsl:text>]</xsl:text>
					</xsl:when>
					<xsl:otherwise>
						<xsl:value-of select="$text"/>
						<xsl:text> </xsl:text>
					</xsl:otherwise>
				</xsl:choose>
			</a>
		</xsl:if>
	</xsl:template>
	
	 <xsl:template name="handlepagefragment" >
       <xsl:param name="appId"/>
                   <!--  <xsl:for-each select="//dmodule//identAndStatusSection//dmStatus//referencedApplicGroup//applic"> -->
					 <xsl:for-each select="//figure//graphic//hotspot">
                      <xsl:if test="@id=$appId">
						<xsl:value-of select="@applicationStructureName"/> 
					  </xsl:if>
                    </xsl:for-each>
       </xsl:template>
        <xsl:template name="handlepagefragment9" >
       <xsl:param name="appId"/>
                   <!--  <xsl:for-each select="//dmodule//identAndStatusSection//dmStatus//referencedApplicGroup//applic"> -->
					 <xsl:for-each select="//figure//graphic//hotspot">
                      <xsl:if test="@id=$appId">
						<xsl:value-of select="@id"/> 
					  </xsl:if>
                    </xsl:for-each>
       </xsl:template>
       
       <xsl:template name="handlepagefragment2" >
       <xsl:param name="appId"/>
                   <!--  <xsl:for-each select="//dmodule//identAndStatusSection//dmStatus//referencedApplicGroup//applic"> -->
					 <xsl:for-each select="//figure//graphic//hotspot">
                      <xsl:if test="@id=$appId">
						<xsl:value-of select="@applicationStructureName"/> 
					  </xsl:if>
                    </xsl:for-each>
       </xsl:template>
       
       <xsl:template name="handlepagefragment1" >
       <xsl:param name="appId1"/>
                   <!--  <xsl:for-each select="//dmodule//identAndStatusSection//dmStatus//referencedApplicGroup//applic"> -->
					 <xsl:for-each select="//figure//graphic//hotspot">
                      <xsl:if test="@id=$appId1">
						<xsl:value-of select="../@infoEntityIdent"/> 
					  </xsl:if>
                    </xsl:for-each>
       </xsl:template>

	
	
	
	
	
	<!--dmRef内容解析-->
	<xsl:template match="*" mode="dmRef">
		<a href="javascript:void(0);">
			 <xsl:attribute name="href">%PATH%DMC-<xsl:apply-templates select="dmRefIdent/dmCode" mode="dmCode"/>.html?type=ref<xsl:if test="@referredFragment"><xsl:text>&amp;inner_id=</xsl:text><xsl:value-of select="@referredFragment"/></xsl:if></xsl:attribute>
			 <xsl:attribute name="onclick">refDM('<xsl:apply-templates select="dmRefIdent/dmCode" mode="dmCode"/>')</xsl:attribute><xsl:apply-templates select="dmRefIdent/dmCode" mode="dmCode"/>
			<!-- <xsl:if test="@referredFragment">
		<xsl:apply-templates select="." mode="dmRef_value"/>
	</xsl:if> -->
		</a>
	</xsl:template>
	<xsl:template match="*" mode="dmRef_value">
		<xsl:param name="value">
			<xsl:value-of select="@referredFragment"/>
		</xsl:param>
		<xsl:choose>
			<xsl:when test="substring($value,1,3)='par'"> 段落 </xsl:when>
			<xsl:when test="substring($value,1,3)='tab'"> 表格 </xsl:when>
			<xsl:when test="substring($value,1,3)='fig'"> 多媒体 </xsl:when>
		</xsl:choose>
	</xsl:template>
</xsl:stylesheet>
